﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace OMC.DataManagement
{
    /// <summary>
    /// This class represents a set of MailItems in Outlook
    /// </summary>
    public class ClassifiableCollection : IClassifiable
    {
        private ICollection<IClassifiable> classifiables;


        /// <summary>
        /// The constructor.
        /// </summary>
        /// <param name="classifiables">body of the mail</param>
        public ClassifiableCollection(ICollection<IClassifiable> classifiables)
        {
            this.classifiables = classifiables;
        }

        /// <summary>
        /// This method gets the content of all MailContent objects contained in the ClassifiableCollection object
        /// </summary>
        /// <returns>Concatenated strings of all MailContent objects contained in the ClassifiableCollection object</returns>
        public String GetContent()
        {
            String content = "";
            foreach (IClassifiable classifiable in classifiables)
            {
                content += classifiable.GetContent() + " ";
            }
            return content;
        }
    
    }


}
